﻿using System.Data;
using DAL;
namespace BLL
{
    public class BllReceipt
    {
        #region[Get-Data]
        public DataTable GetReceipt(string keywords)
        {
            return DalReceipt.GetReceipt(keywords);
        }
        public DataTable GetReceiptReport(string keywords)
        {
            return DalReceipt.GetReceiptReport(keywords);
        }
        public DataTable GetReceiptEdit(int id)
        {
            return DalReceipt.GetReceiptEdit(id);
        }
        public DataTable GetReceiptTotal(int id, int flag)
        {
            return DalReceipt.GetReceiptTotal(id,flag);
        }
        public DataTable GetReceiptIsOrderTotal(int id, int flag)
        {
            return DalReceipt.GetReceiptIsOrderTotal(id, flag);
        }
        public static bool GetRceiptCheck(EtReceipt obj)
        {
            return DalReceipt.GetRceiptCheck(obj);
        }
        public static bool GetRceiptCheckIsOrder(EtReceipt obj)
        {
            return DalReceipt.GetRceiptCheckIsOrder(obj);
        }
        public static bool GetRceiptCheckAmout(EtReceipt obj)
        {
            return DalReceipt.GetRceiptCheckAmout(obj);
        }
        public DataTable GetReceiptTotalRemain(int ID_Sell, float VoucherAmount)
        {
            return DalReceipt.GetReceiptTotalRemain(ID_Sell, VoucherAmount);
        }
        public DataTable GetReceiptFillterDate(string DateBegin, string DateEnd)
        {
            return DalReceipt.GetReceiptFillterDate(DateBegin, DateEnd);
        }
        public DataTable GetReceiptReportFillterDate(string DateBegin, string DateEnd)
        {
            return DalReceipt.GetReceiptReportFillterDate(DateBegin, DateEnd);
        }
        #endregion

        #region[Insert-Update-Delete]
        public static bool InsertReceipt(EtReceipt obj)
        {
            return DalReceipt.InsertReceipt(obj);
        }
        public static bool UpdateReceipt(EtReceipt obj)
        {
            return DalReceipt.UpdateReceipt(obj);
        }
        public static bool DeleteReceipt(EtReceipt obj)
        {
            return DalReceipt.DeleteReceipt(obj);
        }
        public static bool PlusReceipt(EtReceipt obj)
        {
            return DalReceipt.PlusReceipt(obj);
        }
        #endregion
    }
}